<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
  //1.String基本使用
  var name="coderwhy"
  var adress="广州市"
  var intro="认真是一种可怕的力量"
  //2.别的引号的使用
  var message1='Helloworld'
  var message2='HelloWorld'
  console.log(message2.length)
  //反引号（ES6新增语法），${变量/表达式}可以用来拼接
var name="cyh"
  var message3=`Hellow,${name}`
  console.log(message3)
  var message4='my name \' \' is "coderwhy"'
  //转义用\,\\两个\表示一个\
  console.log(message4)
//字符串的操作
var nickname="coderwhy"
var info="my name is"
var infoStr=`my name is ${nickname}`
console.log(infoStr)
var infoStr2=info+nickname
console.log(infoStr2)
  </script>
</body>
</html>